package com.atguigu.userprofile.dao

import com.atguigu.userprofile.bean.TaskTagRule
import com.atguigu.userprofile.util.MysqlUtil

object TaskTagRuleDAO {


  def   getTaskTagRuleList(taskId:String):List[TaskTagRule] = {

    val sql=s"select tr.*, tag_name as sub_tag_value  from task_tag_rule tr  join tag_info ti on sub_tag_id=ti.id where  task_id='$taskId'"
    val taskTagRules: List[TaskTagRule] = MysqlUtil.queryList(sql, classOf[TaskTagRule], true)
    taskTagRules

  }

}
